package com.gisocn.onemap.greendao;

import com.gisocn.onemap.model.Dirs;
import com.gisocn.onemap.model.Files;
import com.gisocn.onemap.model.Folders;
import com.gisocn.onemap.model.OfflineDownLoadFileInfo;
import java.util.Map;
import org.greenrobot.greendao.AbstractDao;
import org.greenrobot.greendao.AbstractDaoSession;
import org.greenrobot.greendao.database.Database;
import org.greenrobot.greendao.identityscope.IdentityScopeType;
import org.greenrobot.greendao.internal.DaoConfig;

/* loaded from: classes.dex */
public class DaoSession extends AbstractDaoSession {
    private final DirsDao dirsDao;
    private final DaoConfig dirsDaoConfig;
    private final FilesDao filesDao;
    private final DaoConfig filesDaoConfig;
    private final FoldersDao foldersDao;
    private final DaoConfig foldersDaoConfig;
    private final OfflineDownLoadFileInfoDao offlineDownLoadFileInfoDao;
    private final DaoConfig offlineDownLoadFileInfoDaoConfig;

    public DaoSession(Database database, IdentityScopeType identityScopeType, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig> map) {
        super(database);
        DaoConfig clone = map.get(DirsDao.class).clone();
        this.dirsDaoConfig = clone;
        clone.initIdentityScope(identityScopeType);
        DaoConfig clone2 = map.get(FilesDao.class).clone();
        this.filesDaoConfig = clone2;
        clone2.initIdentityScope(identityScopeType);
        DaoConfig clone3 = map.get(FoldersDao.class).clone();
        this.foldersDaoConfig = clone3;
        clone3.initIdentityScope(identityScopeType);
        DaoConfig clone4 = map.get(OfflineDownLoadFileInfoDao.class).clone();
        this.offlineDownLoadFileInfoDaoConfig = clone4;
        clone4.initIdentityScope(identityScopeType);
        DirsDao dirsDao = new DirsDao(clone, this);
        this.dirsDao = dirsDao;
        FilesDao filesDao = new FilesDao(clone2, this);
        this.filesDao = filesDao;
        FoldersDao foldersDao = new FoldersDao(clone3, this);
        this.foldersDao = foldersDao;
        OfflineDownLoadFileInfoDao offlineDownLoadFileInfoDao = new OfflineDownLoadFileInfoDao(clone4, this);
        this.offlineDownLoadFileInfoDao = offlineDownLoadFileInfoDao;
        registerDao(Dirs.class, dirsDao);
        registerDao(Files.class, filesDao);
        registerDao(Folders.class, foldersDao);
        registerDao(OfflineDownLoadFileInfo.class, offlineDownLoadFileInfoDao);
    }

    public void clear() {
        this.dirsDaoConfig.clearIdentityScope();
        this.filesDaoConfig.clearIdentityScope();
        this.foldersDaoConfig.clearIdentityScope();
        this.offlineDownLoadFileInfoDaoConfig.clearIdentityScope();
    }

    public DirsDao getDirsDao() {
        return this.dirsDao;
    }

    public FilesDao getFilesDao() {
        return this.filesDao;
    }

    public FoldersDao getFoldersDao() {
        return this.foldersDao;
    }

    public OfflineDownLoadFileInfoDao getOfflineDownLoadFileInfoDao() {
        return this.offlineDownLoadFileInfoDao;
    }
}
